package com.bainuo.doctor.common.image_support.imghandle.Bean;

import android.net.Uri;

import com.bainuo.doctor.common.image_support.imghandle.uploader.UploadTask;

/**
 * Created by faraway on 17/2/17.
 */
public class ImageUploadInfo extends UploadTask {

    /**
     * 原图uri
     */
    private Uri srcUri;

    /**
     * 图片宽度
     */
    private int width;

    /**
     * 图片高度
     */
    private int height;

    /**
     * 图片大小
     */
    private int size;


    /**
     * 判断图片是否已经完成上传
     *
     * @return
     */
//    public boolean isUploadComplete() {
//        return getUrl() != null;
//    }


    public ImageUploadInfo() {
        setImageType();
    }


    public Uri getSrcUri() {
        return srcUri;
    }

    public void setSrcUri(Uri srcUri) {
        this.srcUri = srcUri;
    }

    public int getWidth() {
        return width;
    }

    public void setWidth(int width) {
        this.width = width;
    }

    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        this.height = height;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }



    @Override
    public String toString() {
        return "ImageUploadInfo{" +
                ", srcUri=" + srcUri +
                ", width=" + width +
                ", height=" + height +
                ", size=" + size +
                ", url='" + getUrl() + '\'' +
                '}';
    }
}
